﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site2.Master" Inherits="System.Web.Mvc.ViewPage<Dissemination.MVC.ViewModels.FollowUpListViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<asp:Literal runat="server" Text="<%$ Resources:Literals, ApplicationTitle%>" /> · Follow ups management
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="BreadcrumbContent" runat="server">
	<%= Html.ActionLink("Seminar details", "Details", "Seminar", new { id = ViewContext.RouteData.Values["seminarid"] }, null)%> &gt; Follow ups
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h1>Follow-up results management</h1>
<h2>You have added <%=Model.FollowUpsCount%> participants' follow-up data out of <%=Model.ParticipantsCount%> participants.</h2>
<p class="explanation">Remember that follow-up results are anonymous. The only way to identify them is by their ID.</p>
       <% if (Model.FollowUps.Count == 0) { %>
           <p></p>
        <% }
           else
           { %>
    <ul class="elements-list">
        <li class="first">
            <div class="cell350 flota">ID</div>
            <div class="cell110 flota_der"><asp:Literal runat="server" Text="<%$ Resources:Literals, ActionsLiteral%>" /></div>
        </li>


    <% int i = 1;  foreach (var item in Model.FollowUps) { %>

        <li>
            <div class="cell110 flota">
                <%= i++%>
            </div>
            <div class="enlaces flota_der">
                <%= Html.ActionLink("Edit", "Edit", new { id = item.FollowUpID })%>
                <%= Html.ActionLink("Details", "Details", new { id = item.FollowUpID })%>
            </div>
        </li>
                
    <% } %>

    </ul>
    <% } %>

    <p class="enlaces">
        <%= Html.ActionLink("Add new follow-up results", "Create", new { SeminarID = ViewContext.RouteData.Values["seminarid"] })%>
    </p>

    <div class="navigation">
        <p class="enlaces">
            <%= Html.ActionLink("Back to seminar page", "Details", "Seminar", new { id = ViewContext.RouteData.Values["seminarid"] }, null)%>
        </p>
    </div>

</asp:Content>
